package com.aica.vo.request;

import com.aica.constant.FormatConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * 注册请求类
 * @author by
 * @date 2021/6/9 21:31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RegisterVo {

    //@NotEmpty
    //todo 修改注册接口中手机号为非必填
    //@Pattern(regexp = FormatConstant.PHONE_NUMBER)
    private String phoneNumber;

    @NotEmpty
    @Email
    private String email;

    @NotEmpty
    private String emailCode;

    @NotEmpty
    //@Pattern(regexp = FormatConstant.USER_NAME)
    //暂时取消格式校验
    private String username;

    @NotEmpty
    //@Pattern(regexp = FormatConstant.PASSWORD)
    //暂时取消格式校验
    private String password;
}
